export const execWithCatchAsync = async (func, ...args) => {
    try {
        const result = await func(...args)
        return result
    } catch (error) {
        return error.toJSON()
    }
}